<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>员工记录</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="/worker_assets/css/bootstrap.min.css" rel="stylesheet">
	<link href="/worker_assets/css/style.css" rel="stylesheet">
	<link href="/worker_assets/css/font-awesome.css" rel="stylesheet">
</head>
<body>
	<div class="container-fluid">
		<div class="om-ctl-mes">
			<div class="title">
				<div class="col-xs-12"><span class="fa fa-list-ul"> 员工管理</span><b class="fa fa-caret-right"></b><i>员工记录</i></div>
			</div>
			<div class="seltemple">
				<div class="col-xs-12">
                    <form class="form-inline form" action="/admin_worker" method="get">
                    <div class="col-xs-3 mes-group"><label>部门</label><select name="department"><option value="0">请选择</option><?foreach($tDIDatas as $tDIRow){?><option value="<?=$tDIRow['num']?>" <?if($tDIRow['num'] == $pDepartment)echo 'selected';?>><?=$tDIRow['introduce']?></option><?}?></select></div>
                    <!--<div class="col-xs-3 mes-group"><label>部门</label>
                        <select name="department">
                            <option value="0">请选择</option>
                            <?foreach($tDIDatas as $tDIRow){?>
                            <option value="<?=$tDIRow['num']?>" <?if($tDIRow['num'] == $pDepartment) echo 'selected';?>><?=$tDIRow['introduce']?></option>
                            <?}?>
                        </select>
                    </div>-->
                    <div class="col-xs-3 sel-data">
                    <label for="exampleInputName2">入职时间</label>
                    <div class="input-group date form_date" data-date="" data-date-format="yyyy-mm-dd" data-link-field="updated">
                    <input class="form-control" name="hiredate" size="16" id="form-control" value="<?=$pHiredate?>" onclick="WdatePicker();" readonly="" placeholder="" type="text">
                    </div>
                    <input id="updated" value="" name="updated" type="hidden"><br>
                    </div>			
                    <div class="col-xs-3 mes-search"><label>关键词搜索</label><input type="text" name="keyword" value="<?=$pKeyword?>" placeholder="员工姓名/联系电话"><button type="button" id="search">搜索</button></div>
					<div class="col-xs-3 mes-btn"><button type="button" onclick="location.href='/admin_worker/add';">新增员工</button></div>
                </form>
				</div>
			</div>
			<div  class="mes-conttent col-xs-12">
				<table class="table">
	              <thead>
	             	<tr>
			        <th>编号</th>
			        <th>姓名</th>
			        <th>性别</th>
			        <!--<th>出生年月</th>-->
			        <th>联系电话</th>
			        <!--<th>省份证号</th>-->
			        <th>民族</th>
			        <th>健康证</th>
			        <th>所在部门</th>
			        <th>人员类别</th>
			        <th>入职日期</th>
			        <th>上岗证</th>
			        <th>文化程度</th>
			        <!--<th>婚姻</th>-->
			        <!--<th>籍贯</th>-->
			        <th>操作</th>
		            </tr>
	              </thead>
	             <tbody>
                    <?foreach($tDatas as $tRow){?>
		           <tr>
                   <td><?=$tRow['id']?></td>
                   <td><span><?=empty($tRow['name'])?'未知姓名':$tRow['name']?></span><small class="hiddendiv"></small></td>
                   <td><?=$tRow['sex']?></td>
                   <!--<td><?=$tRow['birthdate']?></td>-->
                   <td><?=$tRow['phone']?></td>
                   <!--<td><?=$tRow['critcode']?></td>-->
                   <td><?=$tRow['nation']?></td>
                   <td><?=$tRow['healthy_licence']?></td>
                   <td><?=$tRow['department']?></td>
                   <td><?=$tRow['worker_type']?></td>
                   <td><?=$tRow['hiredate']?></td>
                        <td><?=$tRow['work_licence'] == 1 ? '是':'否'?></td>
                        <td><?=$tRow['education_levels']?></td>
                        <!--<td><?php if($tRow['married'] == 1){echo '已婚';}else if($tRow['married'] == 2){echo '未婚';}else if($tRow['married'] == 3){echo '离异';}else{echo '丧偶';}?></td>-->
                        <!--<td><?=$tRow['native_place']?></td>-->
			         <td>
                     <button onclick="location.href='/admin_worker/edit?id=<?=$tRow['id']?>'">查看</button>
			         	<!--<button type="button" disabled>解冻</button>-->
			         </td>
		           </tr>
                    <?}?>
	            </tbody>
              </table>
                <?=$tShow?>
			</div>
		</div>
    </div>
      <script type="text/javascript" src="/worker_assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="/worker_assets/js/jq.js"></script>
<script type="text/javascript" src="/plugins/datepicker/WdatePicker.js" charset="UTF-8"></script>
    <script>
        $('#search').click(function(){
            $('form').submit();
        }); 
    </script>
</body>
</html>
